package com.miaosha.ms_02.controller;

import com.miaosha.ms_02.domain.User;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Description //TODO
 * @Author Administrator
 * @DATE 2020/9/18 19:13
 **/
@RequestMapping("/goods")
@Controller
public class GoodsController {

    @RequestMapping("/to_list")
    public String list(Model model, User user) {
        model.addAttribute("user", user);
        return "goodsList";
    }
}
